package pruebaFactory;

public class Programa {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		final IVehiculoFactory factory = VehiculoFactory.getInstance();
		IVehiculo vehiculo = factory.crearVehiculo("auto");
		System.out.println("Se creo un: " + vehiculo.getNombre());
		vehiculo = factory.crearVehiculo("moto");
		System.out.println("Se creo un: " + vehiculo.getNombre());
		vehiculo = factory.crearVehiculo("camion");
		System.out.println("Se creo un: " + vehiculo.getNombre());
	}

}
